﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body style="background-color:White">
    

    <pre style="font-family: Consolas; font-size: 13; color: black; background: white;"><span 
        style="color:blue;">using</span>&nbsp;System;
<span style="color:blue;">using</span>&nbsp;Delta_util.Estaticos;
<span style="color:blue;">using</span>&nbsp;Delta_entidad.Base;
<span style="color:blue;">using</span>&nbsp;Delta_entidad.Atributos;
<span style="color:blue;">namespace</span>&nbsp;SitioINewThreadSoft.Entidades
{
&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">Serializable</span>]
&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttEntidad</span>(<span style="color:#a31515;">&quot;devoluciones&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;id_compra,producto&quot;</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;100,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_OPERACION_GRID</span>.INSERTAR,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_OPERACION_GRID</span>.ACTUALIZAR)]
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">class</span>&nbsp;<span 
        style="color:#2b91af;">devoluciones_col_virtual</span>&nbsp;:&nbsp;<span 
        style="color:#2b91af;">TipoBase</span>,&nbsp;<span style="color:#2b91af;">ITipo</span>
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">Int16</span>&nbsp;_id_compra;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">String</span>&nbsp;_producto;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">Int16</span>&nbsp;_cantidad;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">String</span>&nbsp;_concepto;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;System.<span 
        style="color:#2b91af;">String</span>&nbsp;_observacion;
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.SmallInt,&nbsp;5,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.OBTENER,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.ELIMINAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Compra&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.LISTA,&nbsp;<span 
        style="color:#a31515;">&quot;Compra&nbsp;de&nbsp;la&nbsp;cual&nbsp;se&nbsp;devuelve&nbsp;el&nbsp;producto&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;SitioINewThreadSoft&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;Delta_control.Base.ControlBase`1=SitioINewThreadSoft.Entidades.compra&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;ObtenerListado|Lista&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;id_compra&quot;</span>,&nbsp;<span style="color:#a31515;">&quot;factura&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;-,1&quot;</span>,&nbsp;<span style="color:blue;">null</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;0)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">Int16</span>&nbsp;id_compra
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_id_compra;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_id_compra&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:gray;">///</span><span style="color:green;">&nbsp;</span><span 
        style="color:gray;">&lt;summary&gt;</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:gray;">///</span><span style="color:green;">&nbsp;Este&nbsp;campo&nbsp;es&nbsp;virtual,&nbsp;el&nbsp;nombre&nbsp;de&nbsp;la&nbsp;propiedad&nbsp;debe&nbsp;ser&nbsp;el&nbsp;mismo&nbsp;que&nbsp;el&nbsp;de&nbsp;la&nbsp;columna&nbsp;en&nbsp;la&nbsp;consulta.</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:gray;">///</span><span style="color:green;">&nbsp;</span><span 
        style="color:gray;">&lt;/summary&gt;</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Orden&nbsp;de&nbsp;compra&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;1)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">Int16</span>?&nbsp;orden_compra&nbsp;{&nbsp;<span 
        style="color:blue;">get</span>;&nbsp;<span style="color:blue;">set</span>;&nbsp;}
 
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Folio&nbsp;compra&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;2)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">string</span>&nbsp;folio&nbsp;{&nbsp;<span 
        style="color:blue;">get</span>;&nbsp;<span style="color:blue;">set</span>;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.VarChar,&nbsp;50,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.OBTENER,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.ELIMINAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Producto&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.LISTA,&nbsp;<span 
        style="color:#a31515;">&quot;Código&nbsp;del&nbsp;producto&nbsp;a&nbsp;devolver&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;SitioINewThreadSoft&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;Delta_control.Base.ControlBase`1=SitioINewThreadSoft.Entidades.compra_detalle&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;ObtenerListado|Lista&quot;</span>,&nbsp;<span 
        style="color:#a31515;">&quot;producto&quot;</span>,&nbsp;<span style="color:#a31515;">&quot;producto&quot;</span>,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;<span style="color:#a31515;">&quot;id_compra|SelectedIndexChanged&quot;</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;3)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">String</span>&nbsp;producto
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_producto;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_producto&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Nombre&nbsp;producto&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;4)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">string</span>&nbsp;nombre_producto&nbsp;{&nbsp;<span 
        style="color:blue;">get</span>;&nbsp;<span style="color:blue;">set</span>;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.SmallInt,&nbsp;5,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Cantidad&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span 
        style="color:#a31515;">&quot;Cantidad&nbsp;a&nbsp;devolver.&quot;</span>,&nbsp;5)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">Int16</span>&nbsp;cantidad
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_cantidad;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_cantidad&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.VarChar,&nbsp;50,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Concepto&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.LISTA,&nbsp;<span style="color:blue;">null</span>,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;<span style="color:blue;">null</span>,&nbsp;<span 
        style="color:#a31515;">&quot;Seleccione|,Dañado,Sello&nbsp;roto,Otro&quot;</span>,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;<span style="color:blue;">null</span>,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;<span style="color:blue;">null</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;6)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">String</span>&nbsp;concepto
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_concepto;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_concepto&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttrParametro</span>(System.Data.<span 
        style="color:#2b91af;">SqlDbType</span>.VarChar,&nbsp;1000,&nbsp;<span 
        style="color:blue;">null</span>,&nbsp;System.Data.<span style="color:#2b91af;">ParameterDirection</span>.Input,&nbsp;<span 
        style="color:#2b91af;">Enumerados</span>.<span style="color:#2b91af;">TIPO_QUERY</span>.INSERTAR)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#2b91af;">AttPropiedad</span>(<span 
        style="color:#a31515;">&quot;Observación&quot;</span>,&nbsp;<span style="color:blue;">true</span>,&nbsp;<span 
        style="color:blue;">false</span>,&nbsp;<span style="color:blue;">false</span>,&nbsp;<span 
        style="color:blue;">true</span>,&nbsp;<span style="color:#2b91af;">Enumerados</span>.<span 
        style="color:#2b91af;">TIPO_EDITOR</span>.TEXBOX,&nbsp;<span style="color:blue;">null</span>,&nbsp;7)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;System.<span style="color:#2b91af;">String</span>&nbsp;observacion
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">get</span>&nbsp;{&nbsp;<span style="color:blue;">return</span>&nbsp;_observacion;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">set</span>&nbsp;{&nbsp;_observacion&nbsp;=&nbsp;<span 
        style="color:blue;">value</span>;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 
&nbsp;&nbsp;&nbsp;&nbsp;}
}
</pre>
    

</body>
</html>
